package net.dotool.geo;

/**
 * 计算面积
 * @author 李岩飞
 * @email eliyanfei@126.com
 * @date 2020年5月8日上午11:55:49
 */
public class PointArea {
	double x;
	double y;

	public PointArea(double x, double y) {
		UTMRef utm = GeoUtils.latLong2UTM(y, x);
		this.y = utm.getEasting();
		this.x = utm.getNorthing();
	}

	static PointArea create(double x, double y) {
		return new PointArea(x, y);
	}

	VectorArea substract(PointArea a) {
		return new VectorArea(x - a.x, y - a.y);
	}
}
